package com.dcy.daily.skill.spring.aop.aspect;

import com.dcy.daily.common.config.annotation.ComponentUtil;
import com.dcy.daily.service.skill.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;

/**
 * @author duanchunyu
 * @version 1.0.0
 * @Description Aop测试用例
 * @createTime 2021年05月27日 16:37:00
 */
@ComponentUtil.CComponent
public class UsageAop implements ApplicationRunner {

    @Autowired
    private AccountService accountService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        accountService.transfer();
    }
}
